import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {UserModule} from './user/user.module';
import {MovieModule} from './movie/movie.module';
import {UserHomeComponent} from './user/home/user-home.component';

const routes: Routes = [
  {path: 'user', component: UserHomeComponent, loadChildren: () => UserModule},
  {path: '', loadChildren: () => MovieModule},
];

@NgModule({
  imports: [RouterModule.forRoot(routes, {useHash: true})],
  exports: [RouterModule],
})
export class AppRoutingModule {
}
